﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:Microsoft.Samples.Office.UnifiedCommunications.Gadget"
    x:Class="Microsoft.Samples.Office.UnifiedCommunications.Gadget.Version"
    Title="Version" ShowsNavigationUI="False" ClipToBounds="True" xmlns:d="http://schemas.microsoft.com/expression/blend/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d">
    <Page.Resources>
        <Storyboard x:Key="LoadAni">
            <local:BackDoubleAnimation From="300" To="0" Duration="0:0:0.8" EdgeBehavior="EaseOut" Amplitude=".5" Suppression="0" DecelerationRatio=".5" Storyboard.TargetName="mainGrid" Storyboard.TargetProperty="(UIElement.RenderTransform).(TranslateTransform.X)"/>
        </Storyboard>
    </Page.Resources>
    <Page.Triggers>
        <EventTrigger RoutedEvent="FrameworkElement.Loaded">
            <BeginStoryboard Storyboard="{StaticResource LoadAni}"/>
        </EventTrigger>
    </Page.Triggers>
    <Grid x:Name="mainGrid">
        <Grid.RenderTransform>
            <TranslateTransform X="0" Y="0"/>
        </Grid.RenderTransform>
        <Border BorderThickness="1,1,1,1" BorderBrush="#FF333945" CornerRadius="9,9,9,9">
            <Border Width="Auto" Height="Auto" BorderBrush="#FF161D25" BorderThickness="1,1,1,1" CornerRadius="8,8,8,8">
                <Grid Width="Auto" Height="Auto" x:Name="ContentGrid">
                    <Rectangle Stroke="{x:Null}" RadiusX="8" RadiusY="8" Width="Auto" Height="Auto" MinHeight="380" MinWidth="280">
                        <Rectangle.Fill>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <GradientStop Color="#FFDAE3EF" Offset="0"/>
                                <GradientStop Color="#FFE2EBF1" Offset="1"/>
                            </LinearGradientBrush>
                        </Rectangle.Fill>
                    </Rectangle>
                    <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Text="Gadget Version" TextWrapping="Wrap" FontFamily="Calibri" FontSize="16" FontWeight="Bold" Foreground="#FF3D4F73" Padding="0,10,0,0"/>
                    
                    <Grid x:Name="gridContent">
                        <StackPanel VerticalAlignment="Top" Margin="10,50,10,0">
                            <Label x:Name="lblName" FontFamily="Calibri" FontSize="14" FontWeight="Bold"/>
                            <Label x:Name="lblVersion" FontFamily="Calibri" FontSize="14" FontWeight="Bold"/>
                            <Label x:Name="lblCopyright" FontFamily="Calibri" FontSize="14" FontWeight="Bold"/>
                            <TextBlock x:Name="tbDescription" FontFamily="Calibri" FontSize="14" TextWrapping="Wrap" Margin="0,15,0,0"/>
                        </StackPanel>
                    </Grid>
                    <Button x:Name="btnCancel" Click="btnCancel_Click" VerticalAlignment="Bottom" HorizontalAlignment="Right" Content="Close" Style="{DynamicResource BtnGeneric}" Width="60" Height="20" Margin="0,0,15,10"/>
    			</Grid>
            </Border>
        </Border>
    </Grid>
</Page>